package com.fuze.energy.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author sepc_
 * @date 7/29/2021 15:23
 */
@ApiModel(value="User")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "HWGdate.user_tab")
public class User implements Serializable {
    private static final long serialVersionUID = 8556067268620513572L;

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="自增主键")
    private Integer id;


    @TableField(value = "username")
    @ApiModelProperty(value="用户名")
    private String username;

    @TableField(value = "`password`")
    @ApiModelProperty(value="用户密码")
    private String password;

    public static final String COL_ID = "id";

    public static final String COL_USERNAME = "username";

    public static final String COL_PASSWORD = "password";
}